//将我们http.js中封装好的  get,post.put,delete  导过来
import { axios_get, axios_post, axios_delete, axios_put, upload_post } from './http.js'

// 获取物流线路分析查询结果
export const region_order_search_post = p => axios_post("/region_order_search/", p)

// 获取发货地址清单
export const region_option_get = p => axios_get("/region_option/", p)

// 获取收货地址清单
export const region_option_post = p => axios_post("/region_option/", p)

// 根据城市获取图片
export const path_post = p => axios_post("/path/", p)

// 订单列表
export const order_get = p => axios_get("/order/", p)

// 添加订单
export const order_post = p => axios_post("/order/", p)

// 设备列表
export const equipment_get = p => axios_get("/equipment/", p)

// 添加设备
export const equipment_post = p => axios_post("/equipment/", p)

// 客户列表
export const custom_get = p => axios_get("/custom/", p)

// 添加客户
export const custom_post = p => axios_post("/custom/", p)

// 货物类型列表
export const type_get = p => axios_get("/type/", p)

// 添加货物类型
export const type_post = p => axios_post("/type/", p)

// 权限认证
export const right_judge_get = p => axios_get('/right_judge/', p)

// 获取七牛云token
export const uptoken_get = p => axios_get('/uptoken/', p)

//按照格式确定方法名
export const jwt_send_get = p => axios_post("/users/login/", p)

// 管理员注册
export const admin_register_post = p => axios_post("/admin_register/", p)

// 管理员登录
export const login_post = p => axios_post("/login/", p)

// 普通注册
export const reg_post = p => axios_post("/reg/", p)


// 获取公司列表
export const office_get = p => axios_get("/office/", p)

// 添加公司
export const office_post = p => axios_post("/office/", p)

// 请求用户列表
export const user_get = p => axios_get("/user/", p)

// 请求添加用户
export const user_post = p => axios_post("/user/", p)

// 请求权限列表
export const right_get = p => axios_get("/right/", p)

// 添加权限
export const right_post = p => axios_post("/right/", p)


// 请求角色列表
export const character_get = p => axios_get("/character/", p)

// 添加角色
export const character_post = p => axios_post("/character/", p)

// 获取当前角色的权限
export const character_right_get = p => axios_get("/character_right/", p)

// 修改当前角色的权限
export const character_right_post = p => axios_post("/character_right/", p)

// 获取当前用户的角色
export const user_character_get = p => axios_get("/user_character/", p)

// 修改当前用户的角色
export const user_character_post = p => axios_post("/user_character/", p)
// ______________________________________________________________

// 请求删除用户
export const user_delete = p => axios_delete("/userlist/", p)

// 请求修改用户
export const user_put = p => axios_put("/userlist/", p)

// 管理员邮箱登录---获取邮箱验证码
export const admin_email_code_post = p => axios_post("/send_email/", p)

// 管理员邮箱登录---后端判断验证码是否正确
export const admin_email_login_post = p => axios_post("/email_login/", p)

// 请求用户当前的全部课程
export const get_course_all = p => axios_get("/getcourses/", p)

// 请求当前的全部标签
export const get_tags_all = p => axios_get("/gettags/", p)

// 删除选中的课程
export const delete_curriculum = p => axios_get("/deletecourse/", p)

// 添加新的课程
export const insert_curriculum = p => axios_get("/insertcourse/", p)

// 修改课程
export const update_curriculum = p => axios_get("/updatecourse/", p)

// 获取单个课程课程
export const get_curriculum_one = p => axios_get("/courseinfo/", p)

// 搜索课程
export const search_curriculum = p => axios_get("/searchcourse/", p)

// 修改课程
export const course_info_put = p => axios_put("/course_admin/", p)
// 删除课程
export const course_info_delete = p => axios_get("/course_admin/", p)
// 增加课程
export const course_info_post = p => axios_post("/course_admin/", p)
// 检查用户名
export const username_post = p => axios_post("/check_username/", p)
// 获取标签列表
export const tags_get = p => axios_get("/get_tags/", p)


// 章节视频入库接口
export const add_video_post = p => axios_post("/sectionvideo/", p)

// 章节视频获取接口
export const get_video = p => axios_get('/sectionvideo/', p)


// 删除路径接口
export const path_delete = p => axios_get('/path_admin/', p)

// 查询路径信息
export const get_path_get = p => axios_get('/getpath/', p)

// 单个路径详情信息
export const get_camp_get = p => axios_get('/drillcourse/', p)

// 修改库存量
export const set_stock_post = p => axios_post('/set_stocks/', p)

// 获取课程列表（简）
export const get_course_get = p => axios_get('/getcourses1/', p)

// 提交活动
export const seckill_admin_post = p => axios_post('/seckill_admin/', p)
